package com.gk.carshopsys.dao;

import com.gk.carshopsys.pojo.Car;
import com.gk.carshopsys.pojo.CarOrder;
import com.gk.carshopsys.pojo.CarOrderImport;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface CarOrderDao {



    public List<Map> findCarSales();

    public Long findOrderMouthCountIncome();

    public Long findOrderMouthCount();

    public List<CarOrder> findCarOrderByOrdernum(String Ordernum);

    public List<CarOrder> findCarOrder(HashMap<String,String> params);

    public int addCarOrder(CarOrder carOrder);

    //批量新增库存
    public int addCarOrderByList(List<CarOrderImport> list);

    public int updateCarOrderById(CarOrder carOrder);

    //删除汽车订单
    public int delCarOrder(List<Integer> carorder);
}
